package fr.umlv.jee.jawp.persistence.object;

import java.io.Serializable;

public class Person implements Serializable {

	private static final long serialVersionUID = 1L;

	private String user_id;
	private String uid;
	private String userPassword;
	private String group;

	private String lastName;
	private String firstName;

	private String postalAddress;
	private String postalCode;
	private String city;

	private String preferredLanguage;
	private String description;

	private String telephoneNumber;
	private String mobile;

	public Person() {

	}

	public Person(String user_id, String uid, String userPassword,
			String group, String lastName, String firstName,
			String postalAddress, String postalCode, String street,
			String preferredLanguage, String description,
			String telephoneNumber, String mobile) {
		super();
		this.user_id = user_id;
		this.uid = uid;
		this.userPassword = userPassword;
		this.group = group;
		this.lastName = lastName;
		this.firstName = firstName;
		this.postalAddress = postalAddress;
		this.postalCode = postalCode;
		this.city = street;
		this.preferredLanguage = preferredLanguage;
		this.description = description;
		this.telephoneNumber = telephoneNumber;
		this.mobile = mobile;
	}

	/**
	 * @return the user_id
	 */
	public String getUser_id() {
		return user_id;
	}

	/**
	 * @param user_id
	 *            the user_id to set
	 */
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	/**
	 * @return the uid
	 */
	public String getUid() {
		return uid;
	}

	/**
	 * @param uid
	 *            the uid to set
	 */
	public void setUid(String uid) {
		this.uid = uid;
	}

	/**
	 * @return the userPassword
	 */
	public String getUserPassword() {
		return userPassword;
	}

	/**
	 * @param userPassword
	 *            the userPassword to set
	 */
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	/**
	 * @return the group
	 */
	public String getGroup() {
		return group;
	}

	/**
	 * @param group
	 *            the group to set
	 */
	public void setGroup(String group) {
		this.group = group;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * @param lastName
	 *            the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * @param firstName
	 *            the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * @return the postalAddress
	 */
	public String getPostalAddress() {
		return postalAddress;
	}

	/**
	 * @param postalAddress
	 *            the postalAddress to set
	 */
	public void setPostalAddress(String postalAddress) {
		this.postalAddress = postalAddress;
	}

	/**
	 * @return the postalCode
	 */
	public String getPostalCode() {
		return postalCode;
	}

	/**
	 * @param postalCode
	 *            the postalCode to set
	 */
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	/**
	 * @return the street
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param street
	 *            the street to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the preferredLanguage
	 */
	public String getPreferredLanguage() {
		return preferredLanguage;
	}

	/**
	 * @param preferredLanguage
	 *            the preferredLanguage to set
	 */
	public void setPreferredLanguage(String preferredLanguage) {
		this.preferredLanguage = preferredLanguage;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the telephoneNumber
	 */
	public String getTelephoneNumber() {
		return telephoneNumber;
	}

	/**
	 * @param telephoneNumber
	 *            the telephoneNumber to set
	 */
	public void setTelephoneNumber(String telephoneNumber) {
		this.telephoneNumber = telephoneNumber;
	}

	/**
	 * @return the mobile
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * @param mobile
	 *            the mobile to set
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("User_id :");
		sb.append(user_id);
		sb.append(" ; ");
		sb.append(group);
		sb.append(" ; ");
		sb.append(lastName);
		sb.append(" ; ");
		sb.append(firstName);
		sb.append(" ; ");
		sb.append(description);
		sb.append(" ; ");
		sb.append(mobile);
		sb.append(" ; ");
		sb.append(city);
		sb.append(" ");
		sb.append(postalCode);
		sb.append(" ");
		sb.append(postalAddress);
		sb.append(" ; ");
		sb.append(telephoneNumber);
		sb.append(" ; ");
		sb.append(preferredLanguage);
		sb.append(" ; ");
		sb.append(uid);
		sb.append(" ; ");
		sb.append(userPassword);
		sb.append(".");
		return sb.toString();
	}
}
